<template>
	<!-- <button @click="changeTheme" class="test">修改主题</button> -->
	<router-view></router-view>
</template>

<script setup lang="ts">
import { onMounted } from 'vue';
import * as echarts from '@/utils/echarts';
import { provide } from 'vue';
provide('echarts', echarts); //provide
onMounted(() => {
	let themeStr = localStorage.getItem('theme') || 'theme-dark'; //默认暗色主题
	document.body.setAttribute('data-theme', themeStr);
});
</script>

<style scoped>
.test {
	color: var(--el-color-primary);
}
</style>
